<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>注册会员</title>
    <script src="/static/mobile/js/mui.min.js"></script>
    <link href="/static/mobile/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/basic.css"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/resiter_daili.css"/>
    <script type="text/javascript" src="/static/mobile/js/jquery.js"></script>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <script type="text/javascript" charset="utf-8">
      	mui.init();
    </script>
	<style>
		.section2 .sub button {
			width: 100%;
			padding: 5px;
			font-size: 1rem;
			color: #fff;
			background: #E52D2D;
			border-color: #E52D2D;
		}
	</style>
</head>
<body>
	<div class="sectionx">
		<header class="mui-bar mui-bar-nav" >
			<a class="mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.back(-1)" style="color: #4E4E4E;"></a>
			<h1 class="mui-title">注册会员</h1>
		</header>
	</div>
	<div class="section2">
		<div class="layui-form">
		<form  method="post">
			<ul>

		<!--		<li class=" mui-clearfix">
					<span>会员编号</span>
					
					<input type="text" name='nickname' placeholder="请填写会员编号"/>
					<span class="xing">*</span>
					
				</li>-->
				<li class=" mui-clearfix">
					<span>会员手机号</span>

					<input type="text" name='mobile' placeholder="请填写会员手机号"/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix">
					<span>会员姓名</span>

					<input type="text" placeholder="请填写会员姓名" name='username'/>
					<span class="xing">*</span>
				</li>
				<li class=" mui-clearfix">
					<span>会员身份证</span>
					<input type="text" placeholder="请填写会员身份证" name='shenfenzheng'/>
					<span class="xing">*</span>
				</li>
				<li class=" mui-clearfix" >
					<span>会员密码</span>
					<input type="password" placeholder="请填写会员密码" name='password'/>
					<span class="xing">*</span>
					
				</li>
				<li class=" mui-clearfix" >
					<span>收货地址</span>
					<input type="text" placeholder="请填写收货地址" name='dizhi'/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix" >
					<span>二级密码</span>
					<input type="password" placeholder="请填写二级密码" name='twopassword'/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix" >
					<span>开户银行</span>
					<input type="text" placeholder="请填写开户银行" name='bank_name'/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix" >
					<span>开户卡号</span>
					<input type="text" placeholder="请填写开户卡号" name='bank_card'/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix" >
					<span>开户地址</span>
					<input type="text" placeholder="请填写开户地址" name='bank_dizhi'/>
					<span class="xing">*</span>

				</li>
				<li class=" mui-clearfix">
					<span>推荐人手机号</span>
					<input type="text" placeholder="请填写推荐人手机号" name='topmobi'/>
					<span class="xing">*</span>
				</li>
			<!--	<li class=" mui-clearfix">
					<span>安置人编号</span>
					<input type="text" placeholder="请填写安置人编号" name='fathername'/>
					<span class="xing">*</span>
				</li>
				<li class=" mui-clearfix">
					<span>服务中心编号</span>
					<input type="text" placeholder="请填写服务中心编号" name='center_id'/>
					<span class="xing">*</span>
				</li>
				<li class="mui-clearfix">
					<span>安置区域</span>
					<select name="treeplace">
						<option value="1">A区</option>
						<option value="2">B区</option>
					</select>
				</li>-->
				<li class="mui-clearfix">
					<span>报单级别</span>
					<select name="level">

						<option value="{$levels.level}">{$levels.level_name}</option>


-->					</select>
				</li>
				
				
			</ul>
			<div class="ge"></div>
			<div class="sub">
				<button type="button" class="layui-btn" lay-filter="sub" lay-submit>确定注册</button>
			</div>
		</form>
		</div>
	</div>
	
	
</body>
<script type="text/javascript" >
    mui('body').on( 'tap' , 'a' , function(){
        document.location.href=this.href;
    })
</script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,$ = layui.jquery;
        // 登录提交监听
        form.on('submit(sub)', function (data) {
            var loading = layer.load(1, {shade: [0.1, '#fff']});
            $.post("{:url('daili')}",data.field,function(res){
                layer.close(loading);
                if(res.code > 0){
                    layer.msg(res.msg,{time:1000,icon:1},function(){
                        location.href = "{:url('daili')}";
                    });
                }else{
                    layer.msg(res.msg,{time:1000,icon:2});
                    $('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
                }
            });
        })
    })
</script>


</html>